package com.hrma.dao;

import com.github.pagehelper.Page;
import com.hrma.entity.SelectResult;
import com.hrma.entity.TalentPool;
import com.hrma.entity.TalentPoolDTO;
import com.hrma.entity.TalentPoolVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TalentPoolMapper {
    void add(TalentPool data);

    void delete(int id);

    void update(TalentPool data);

    List<SelectResult> select();

    Page<TalentPoolVO> getList(TalentPoolDTO data);

    boolean exist(@Param("id") Integer id);

    Integer getstate(Integer id);

    void setState(Integer state, Integer id);
}
